package com.hm.hsw1;

import java.io.FileWriter;
import java.util.Properties;

public class Demo1 {
    public static void main(String[] args) throws Exception {
        Properties properties = new Properties();
        properties.setProperty("brand", "Iphone11Pro Max");
        properties.setProperty("capacity", "256G");
        properties.setProperty("price", "10899");
        properties.store(new FileWriter("iphone.properties"),"xixi");
    }
}
